package com.mdd.common.enums.auth;

import lombok.Data;

/**
 * @Description
 * @Author 幻速
 * @Date 2023/11/6 15:33
 **/
public enum AuthStatusEnum {
    TO_BE_AUTHORIZED(0,"待授权"),
    AUTHORIZATION_SUCCESSFUL(1,"授权成功"),
    PRIVILEGE_GRANT_FAILED(2,"授权失败"),
    AUTHORIZATION_CANCELLATION(3,"授权取消");
    //授权状态：0、待授权 1、授权成功 2、授权失败 3、授权取消
    private final int code;
    private final String msg;
    AuthStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
